<?php !defined('IN_DSW') && exit('大神你要飞呀');?>
{Tinwin include:top}
{Tinwin include:left}
<div class="main">
	<div class="position">
		<ul>
			<li><a href="{Tinwin c:ADMIN_URL}index">后台首页</a></li>
            <li>/</li>
            <li><a href="{Tinwin c:MyAppUrl}index">友链内链模块</a></li>
			<li>/</li>
			<li>{Tinwin $FormTitle}</li>
		</ul>
    </div>
    <div class="mainform">
        {Tinwin include:nav}
    </div>    
	<div class="maininfo">
        <table class="table">
            <thead>
                <tr>
                    <td>选择</td>
                    <td>优先级</td>
                    <td>链接标题</td>
                    <td>链接地址</td>
                    <td>是否显示</td>
                    <td>编辑</td>
                    <td>删除</td>
                </tr>
            </thead>
            <tbody>
                {Tinwin if $ListAll['data']}
                {Tinwin tree $ListAll['data'],myList,cid}
                <tr>
                    <td><input type="checkbox" name="SelectCheckbox[]" value="{Tinwin $myList['id']}"></td>
                    <td>{Tinwin v:myList['link_level']}</td>
                    <td>{Tinwin v:myList['link_title']}</td>
                    <td><a target="_blank" href="{Tinwin v:myList['link_url']}">{Tinwin v:myList['link_url']}</a></td>
                    <td onClick="DisplayOK(this)" id="{Tinwin c:MyAppUrl}inlink-isview&id={Tinwin v:myList['id']}" style="cursor:pointer;">
                        {Tinwin if v:myList['isview']==1}		
                            <span class="glyphicon glyphicon-eye-open"></span>
                        {Tinwin else}
                            <span class="glyphicon glyphicon-eye-close"></span>
                        {Tinwin endif}
                    </td>
                    <td><a class="glyphicon glyphicon-edit" href="{Tinwin c:MyAppUrl}inlink-edit&cid={Tinwin v:myList['parent_id']}&id={Tinwin v:myList['id']}"></a></td>
                    <td><a class="glyphicon glyphicon-remove" href="#" onclick='dswfirm("{Tinwin c:MyAppUrl}inlink-del&id={Tinwin v:myList['id']}","是否删除该内链")'></a></td>
                </tr>
                {Tinwin endtree}
                {Tinwin else}
                <tr><td colspan="7">暂无数据</td></tr>
                {Tinwin endif}
            </tbody>
        </table>
        <div class="">
            <a onClick="choiceAll(this)" style="cursor:pointer;" class="btn"> 全选</a> 
            <a style="cursor:pointer;" onClick="unSelect(this)" class="btn">全不选</a> 
            <a style="cursor:pointer;" onClick="choiceReverse(this)" class="btn">反选</a>
            <button type="submit" class="btn">开始转移</button>
        </div>
        <div class="page"><section><ul>{Tinwin $ListAll['pages']}</ul></section></div>
    </div>
</div>
{Tinwin include:footer}